package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * Created by YANG205 on 2018/6/27.
 */
@Entity
@Table(name = "interactiveRecord")   // 定义数据库表名
public class InteractiveRecord implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "note_id", nullable = false)
    private String noteId;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @Column(name = "receive_user_id", nullable = false)
    private String receiveUserId;

    @Column(name = "content", nullable = false)
    private String content;

    @Column(name = "interactive_type", nullable = false)
    private Integer interactiveType;

    @Column(name = "is_lookup", nullable = false)
    private Boolean isLookup;

    @Column(name = "create_time", nullable = false)
    private ZonedDateTime createTime;

    @Column(name = "created_index")
    private Long createdIndex;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String noteId) {
        this.noteId = noteId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getReceiveUserId() {
        return receiveUserId;
    }

    public void setReceiveUserId(String receiveUserId) {
        this.receiveUserId = receiveUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getInteractiveType() {
        return interactiveType;
    }

    public void setInteractiveType(Integer interactiveType) {
        this.interactiveType = interactiveType;
    }

    public Boolean getLookup() {
        return isLookup;
    }

    public void setLookup(Boolean lookup) {
        this.isLookup = lookup;
    }

    public ZonedDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(ZonedDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getCreatedIndex() {
        return createdIndex;
    }

    public void setCreatedIndex(Long createdIndex) {
        this.createdIndex = createdIndex;
    }
}
